package com.ithe.redis.redission;

import org.redisson.api.RedissonClient;
import org.redisson.config.Config;

import java.io.IOException;

/**
 * Created by zxd on 2022/5/7
 */
public class ResissonUtil {

    private RedissonClient redissonClient;

    public void getRedissonConfig() throws IOException {
        Config config = redissonClient.getConfig();
        System.out.println(config.toJSON());
    }

    public RedissonClient getRedissonClient() {
        return redissonClient;
    }

    public void setRedissonClient(RedissonClient redissonClient) {
        this.redissonClient = redissonClient;
    }
}